package com.zhanglijie.base.volatileLearn;

import fr.ujm.tse.lt2c.satin.cache.size.CacheInfo;
import fr.ujm.tse.lt2c.satin.cache.size.CacheLevel;
import fr.ujm.tse.lt2c.satin.cache.size.CacheLevelInfo;
import fr.ujm.tse.lt2c.satin.cache.size.CacheType;

/**
 * @author zhanglijie
 * @version 1.0
 * @since 1.1.0 2022/5/23 0023 21:59
 */
public class CacheInfoDemo {
    public static void main(String[] args) {
        CacheInfo instance = CacheInfo.getInstance();
        CacheLevelInfo info = instance.getCacheInformation(CacheLevel.L1, CacheType.DATA_CACHE);
        System.out.println("一级缓存set"+info.getCacheSets());
        System.out.println("一级缓存ways"+info.getCacheWaysOfAssociativity());
    }
}
